package voxietest1;

import processing.core.PApplet;
import voxbox.wrapper.VoxiScene;
import voxietest1.jam.BoxesScene;
import voxietest1.jam.HeightFieldScene;
import voxietest1.jam.LunarScene;
import voxietest1.jam.ParticleVoxieScene;
import voxietest1.jam.PongScene;
//import voxbox.wrapper.VoxieWrapper;

public class Voxietest2 extends PApplet {

	public VoxiScene scene;
	
	public void setup() {
		size(2, 2);
		VoxiObject.pApplet = this;
		
		scene = new LunarScene();
		VoxiObject.scene = scene;
				
		scene.setup();
	}

	public void draw() {
		scene.update();
		if (!scene.isAlive()) {
			exit();
		}
	}
	
	public void exit(){
		System.out.println("EXIT");
		scene.exit();
		super.exit();
	}
	
	public void keyPressed(){
		System.out.println(key);
	}
	
	public void mousePressed(){
		((LunarScene)scene).ship.mouseClicked();
	}

	public static void main(String _args[]) {
		PApplet.main(new String[] { voxietest1.Voxietest2.class.getName() });
	}
}
